export interface Order {
    id: string;
    type: string;
    side: string;
    status: string;
    price: number;
    amount: number;
    createdAt: string;
}

export interface PositionRow {
    id: string;
    status: string;
    openTime: string;
    closeTime: string;
    balanceDelta: number;
    balanceDeltaPercent: number;
}

export enum ExtremumType {
    support= 'support',
    resistance = 'resistance'
}

export interface Extremum {
    type: ExtremumType;
    time: number;
    price: number;
}

export enum Side {
    buy= 'buy',
    sell = 'sell'
}

export interface ChartOrder {
    time: number;
    price: number;
    side: Side
}

export interface ChartPosition {
    in: ChartOrder[];
    out: ChartOrder[];
    stopLoss: number;
}